package com.gy.common.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 表头vo
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class SysTableVo {
    /**
     * 菜单id
     */
    @JsonIgnore
    private Integer id;
    /**
     * 表格列中文
     */
    private String label;

    /**
     * 表格列名称
     */
    private String field;

    /**
     * 列宽
     */
    private Integer width;
    /**
     * 最小宽度
     */
    private Integer minWidth;

    /**
     * 下级表头
     */
    private List<SysTableVo> children;

    /**
     * 隐藏 默认false
     */
    private boolean visible;

    private boolean readonly = false;

    //表头点击链接
    private boolean trigger;

    /**
     * Input
     */
    private String inputType;

    /**
     * valueType
     */
    private String valueType;

    private List<OptionVo> selectOptions;

    private boolean merge;
    private String ztApi;
    private boolean zt;
    private String url;

    // value?
    private Object value;

    private String editVisible;

    //固定
    private String fixed;
    //表头类型分组名
    private String groupLabel;
    //分组索引
    private Integer groupIndex;

    private boolean sortable;
}
